-
-
Notifications
You must be signed in to change notification settings - Fork 10
[TreeView] Add visual progress indicators to domain tiles #4024
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
…proportion Co-authored-by: imnasnainaec <[email protected]>
Co-authored-by: imnasnainaec <[email protected]>
Co-authored-by: imnasnainaec <[email protected]>
Co-authored-by: imnasnainaec <[email protected]>
imnasnainaec
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: imnasnainaec <[email protected]>
Co-authored-by: imnasnainaec <[email protected]>
Co-authored-by: imnasnainaec <[email protected]>
|
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #4024 +/- ##
==========================================
- Coverage 74.66% 74.52% -0.15%
==========================================
Files 293 293
Lines 10890 10947 +57
Branches 1364 1373 +9
==========================================
+ Hits 8131 8158 +27
- Misses 2362 2392 +30
Partials 397 397
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Adds progress metrics to semantic domain tiles: sense count badges on the current domain and completion progress bars on navigable siblings/children.
Backend
Added two statistics endpoints in
StatisticsController:GetDomainSenseCount(projectId, domainId)- returns count of senses tagged with domainGetDomainProgressProportion(projectId, domainId, lang)- returns ratio of descendant domains with entries (0.0-1.0)Efficient MongoDB Query: Added
CountSensesWithDomainmethod toWordRepositorythat performs targeted database queries instead of fetching the entire Frontier. Includes optionalmaxCountparameter for early-exit optimization when checking for existence.Service implementation efficiently computes descendants via string prefix matching on domain IDs with proper validation to prevent index-out-of-range exceptions.
Frontend
CurrentRow: Badge displays sense count in upper corner with tooltip "Number of words gathered in this domain"
DomainTileButton: Progress bar along bottom edge shows descendant domain completion percentage. Only shown for
Down/Prev/Nextdirections (excludes parentUptile per spec).API Integration: Backend functions in
src/backend/index.tsautomatically retrieve project ID usingLocalStorage.getProjectId(), following the pattern of other functions in that file. API calls use error handling with graceful degradation - failed fetches simply don't render indicators.Translations: English translation added in
public/locales/en/translation.json. Other languages handled via Crowdin.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.
This change is